package com.example.demo.timer;

import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

/**
 * @desc: <br/>
 * @author: Jingbo Hu<br/>
 * @time：2021年06⽉17⽇<br/>
 * @version：v1.0.0<br>
 */
@Service
public class QuartzTaskService {


    public void handle() {
        try {
            System.out.println("执行任务.....");
            TimeUnit.SECONDS.sleep(1L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
